Component org.nuxeo.ecm.platform.rendition.publish.contrib
In bundle org.nuxeo.ecm.platform.rendition.core
Resolution Order
458
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime
framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.rendition.publish.contrib">
<extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
point="defaultRendition">
<defaultRendition reason="publish">
<script language="JavaScript">
function run() {
if (Document.getType() == "File" || Document.getType() == "Note") {
return 'pdf';
} else if (Document.hasSchema("file")) {
return 'mainBlob';
}
return null;
}
</script>
</defaultRendition>
</extension>
</component>